package fr.ensisa.sunspot.event;

public class StringEvent extends AbstractEvent {
	
	private String string;

	public StringEvent(int major, int minor) {
		super(major, minor);
	}

	public String getString() {
		return string;
	}

	public void setString(String string) {
		this.string = string;
	}
	
    public String toString () {
        StringBuffer tmp = new StringBuffer ();
        tmp.append (super.toString());
        tmp.append(" ");
        tmp.append(string);
        return tmp.toString();
    }

    public IEvent clone() {
        StringEvent copy = new StringEvent(getMajor(), getMinor());
        copy.setState(getState());
        copy.setTimeStamp(getTimeStamp());
        copy.setSource(getSource());
        return copy;
    }	

}
